export function createDom(dom, parent, style) {
  let dom = document.createElement(dom);
  for (let i in style) {
    dom.style[i] = style[i]
  }
  parent.appendChild(dom);
}

export function removeDom(dom, parent) {
  parent.removeChild(dom);
}